const webpack = require('webpack')
const webpackDevMiddleware = require('webpack-dev-middleware')
const express = require('express')

const webpackConfig = require('./base/webpack.config.js')

const compiler = webpack(webpackConfig)

const app = express()

app.use(webpackDevMiddleware(compiler, {

}))

app.listen(3000, () => {
  console.log('Example app listening on port 3000!')
})